package com.itheima.entry.domain;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;

/*
封装用户名,密码,邮箱,电话,登录的时间,退出的时间 ,注册时间,密码输入错误三次后记录的时间
 */
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 86L;
    private String username;//用户名
    private String password;//密码
    private String email;//邮箱
    private String phone;//电话
    private LocalDateTime loginDate;//登录的时间
    private LocalDateTime exitDate;//退出的时间
    private LocalDateTime registerDate;//注册时间
    private LocalDateTime AccessDate;//密码输入错误三次后记录的时间
    private ArrayList<LocalDateTime> exportDateList=new ArrayList<>();//导出文件的时间列表

    public UserInfo() {
    }

    public UserInfo(String username, String password, String email, String phone, LocalDateTime registerDate) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.phone = phone;
        this.registerDate = registerDate;
    }

    public LocalDateTime getAccessDate() {
        return AccessDate;
    }

    public void setAccessDate(LocalDateTime accessDate) {
        AccessDate = accessDate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDateTime getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(LocalDateTime loginDate) {
        this.loginDate = loginDate;
    }

    public LocalDateTime getExitDate() {
        return exitDate;
    }

    public void setExitDate(LocalDateTime exitDate) {
        this.exitDate = exitDate;
    }

    public LocalDateTime getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(LocalDateTime registerDate) {

        this.registerDate = registerDate;
    }

    public ArrayList<LocalDateTime> getExportDateList() {
        return exportDateList;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", loginDate=" + loginDate +
                ", exitDate=" + exitDate +
                ", registerDate=" + registerDate +
                ", AccessDate=" + AccessDate +
                ", exportDateList=" + exportDateList +
                '}';
    }
}
